package cn.tellsea.service;

import cn.tellsea.entity.AjaxResult;
import cn.tellsea.entity.BizAccount;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 账户表 服务类
 * </p>
 *
 * @author Tellsea
 * @since 2021-12-31
 */
public interface IBizAccountService extends IService<BizAccount> {

    /**
     * 扣减账户
     *
     * @param userId
     * @param money
     * @return
     */
    AjaxResult decrease(Long userId, BigDecimal money);
}
